package com.ch.client.openApi.service;

import com.ch.client.openApi.factory.ApiServiceFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author CH
 * @data 2021/12/22
 */
@FeignClient(name = "api", url = "127.0.0.1:8881", fallbackFactory = ApiServiceFactory.class)
public interface ApiService {
    @GetMapping("/api/demo01")
    public Integer d1();

    @GetMapping("/api/demo02")
    public Integer d2();

    @GetMapping("/api/demo03")
    public Integer d3();

    /**
     * 获取请求头
     */
    @GetMapping("/api/demo04")
    feign.Response d4();
}
